# 导入os模块
import os

# path定义要获取的文件名称的目录
path = r"G:\极客时间\33-分布式技术原理与算法解析-文章"

# os.listdir()方法获取文件夹名字，返回数组
file_name_list = os.listdir(path)

# 转为转为字符串
real_num_list = []
for i in file_name_list:
    num = i.split(" ")[0]
    if len(num) <= 2:
        try:
            real_num_list.append(int(num))
        except:
            print("转换失败了" + num)

normal_list = []
for j in range(1, 116):
    normal_list.append(j)

difference = list(set(normal_list).difference(set(real_num_list)))  # bb中有而aa中没有的
difference.sort()
print(difference)
